/*! ******************************************************************************
 *
 * Created on 2022/6/10
 *
 * Copyright(c) YuZhou Big Data Laboratory CO.,Ltd, 2022.  All rights reserved.
 *
 *******************************************************************************
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with
 * the License. You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 ******************************************************************************/

package org.yzbdl.lanius.core.plugins.metastore;

import java.util.List;
import java.util.Map;

/**
 * @author tanp@yzbdl.ac.cn
 * @version: 1.0
 * @Date 2020/12/30 11:50
 **/
public class CheckResultDto {
    public String getTrans() {
        return trans;
    }

    public void setTrans(String trans) {
        this.trans = trans;
    }

    /*标识*/
    public String trans;
    public Boolean flag;
    /*结果消息（一条映射一条消息）*/
    public List<String> messages;
    /*检查结果,后续映射直接遍历使用*/
    public List<Map<String, Object>> checkResult;

    public List<Map<String, Object>> pluginMapping;

    public Boolean isLanius = true;

    public CheckResultDto(Boolean flag, List<String> messages, List<Map<String, Object>> checkResult, String trans,
        List<Map<String, Object>> pluginMapping) {
        this.flag = flag;
        this.messages = messages;
        this.checkResult = checkResult;
        this.trans = trans;
        this.pluginMapping = pluginMapping;
    }

    public Boolean getFlag() {
        return flag;
    }

    public void setFlag(Boolean flag) {
        this.flag = flag;
    }

    public List<String> getMessages() {
        return messages;
    }

    public void setMessages(List<String> messages) {
        this.messages = messages;
    }

    public List<Map<String, Object>> getCheckResult() {
        return checkResult;
    }

    public void setCheckResult(List<Map<String, Object>> checkResult) {
        this.checkResult = checkResult;
    }

    /**
     * 获取pluginMapping
     *
     * @return pluginMapping
     */
    public List<Map<String, Object>> getPluginMapping() {
        return pluginMapping;
    }

    public void setPluginMapping(List<Map<String, Object>> pluginMapping) {
        this.pluginMapping = pluginMapping;
    }

    /**
     * 获取isLanius
     *
     * @return isLanius
     */
    public Boolean getIsLanius() {
        return isLanius;
    }

    public void setIsLanius(Boolean isLanius) {
        this.isLanius = isLanius;
    }
}
